package com.wdhcr.service;

import com.wdhcr.entity.Notice;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/*
 * @description: 超级链接的方法限制接口
 * @author: wdhcr
 * @dateTime: 2020/3/23 23:32
 */
public interface NoticeService {

    //新增公告
    Notice saveNotice(Notice notice);

    //    查询
    Notice getNotice(Long id);

    List<Notice> listNotice();

    List<Notice> listNoticeTop(Integer size);

    Page<Notice> listNotice(Pageable pageable);

    void deleteById(Long id);
}
